#include "CommoConnectionPool.h"

int main()
{
    ConnectionPool *cp = ConnectionPool::getConnectionPool();
    shared_ptr<Connection> ptr(cp->getConnection());
    ptr->update("sadasd");

    // while (1)
    //     ;

    //对子线程设置了 detach() 后主线程会等待子线程结束再结束
}